package com.cloud.flowable.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.flowable.entity.WfDeployForm;
import com.cloud.flowable.entity.WfForm;
import org.flowable.bpmn.model.BpmnModel;

/**
 * 流程实例关联表单Service接口
 */
public interface IWfDeployFormService extends IService<WfDeployForm> {

    /**
     * 新增流程实例关联表单
     *
     * @param wfDeployForm 流程实例关联表单
     * @return 结果
     */
    int insertWfDeployForm(WfDeployForm wfDeployForm);

    /**
     * 保存流程实例关联表单
     *
     * @param deployId  部署ID
     * @param bpmnModel bpmnModel对象
     * @return
     */
    boolean saveProcDeployForm(String deployId, BpmnModel bpmnModel);

    /**
     * 查询流程挂着的表单
     *
     * @param deployId
     * @return
     */
    @Deprecated
    WfForm selectDeployFormById(String deployId);
}
